// 102，103权限点枚举
export enum RIGHT_POINT_ENUM {
  CHANNEL = 102, // 渠道
  MARKETING // 营销目标
}

export enum EXCHANGE {
  ALL = 0,
  GDT = 10001,
  BAIDU_INFO_FLOW = 10002,
  BAIDU_SEARCH,
  WECHAT,
  WEIBO = 10005,
  TOUTIAO,
  NEW_WE_CHAT,
  KUAISHOU = 10009,
  JINNIU = 11009,
  JINNIU_SPIDER = 110092, 
  JINNIU_SPIDER_NEW = 110093, 
  IQY = 10010,
  TEKAN = 10030,
  QIANCHUAN = 11006,
  QIANCHUAN_QY = 110062,
  SUIXINTUI = 12006,
  JUXING = 12009,
  UD = 13000,
  DAHANGHAI = 300001,
  HUICHUAN = 10020,
  ZHIHU = 10021,
  MEIYOU = 10022,
  VIVO = 10023,
  HUAWEI = 10024,
  XIAOMI = 10025,
  OPPO = 10026,
  WIFI = 10027,
  XIAOHONGSHU = 10028,
  YOUKU = 10029,
  TUIA = 10032,
  BILIBILI = 13008,
  QUTOUTIAO = 10011,
  TOUTIAO2 = 100062,
  TOUTIAO_VERSION2 = 100061,
  HUICHUAN_VERSION2 = 100201,
  DOUYIN = 13006,
  // 淘特
  TAOTE = 300002,
  ZHIFUBAO = 300004, // 支付宝渠道
  GDT_NEW = 100011, // 广点通-新版
  ZHONGXIAOLIULIANG = 10031, // 中小流量渠道
}

export enum BusinessLevel {
  User = 1,
  Channel,
  Account,
  Plan,
  Campaign,
  Creative,
  BUSINESS,
  QUALIFICATION,
  AUDIENCE,
  KEYWORD,
  AdConvert,
  Material = 13,
  Target,
  ProgramCreative,
  Application,
  LandPage,
  Video,
  Image,
  CreatorVideo,
  Product = 21,
  AwemeAccount = 22,
  BatchAdRules = 24,
  ProjectReport = 28,
  MaterialReport,
  AdReport = 31,
  AudienceTemplate = 32,
  TitlePackage = 36,
  CreativeCategory = 37,
  CreativeLabel = 38,
  AuditMaterial = 43,
  CidGood = 101,
  CidShop = 102,
  CidOrder = 104, // CID订单总览
  CidOrderCustom = 105, // CID订单列表
  CidGoodManage = 106, // CID商品总览
  CidCommissionCheck = 109, // CID佣金对账列表
  CidManageCommissionCheck = 110, // CID佣金对账管理列表
  CidCompanySettleOrder = 111, // CID出账管理订单明细
  CidTaOrder = 107, // CID TA订单总览
  CidTaOrderCustom = 108, // CID TA订单列表
  CidMtOrder = 116, // CID 美团订单总览
  CidMtOrderCustom = 117, // CID 美团订单列表
  CidUdSmartKllOrder = 118, // CID udsmart凯丽隆订单
	CidUdSmartKllOrderCustom = 119, // CID udsmart凯丽隆订单列表
	CidAccount = 120, // cid 投放账号列表
  CidAccountManage= 121, // CID 投放账号总览列表
  CidProjectPidManage= 122, // CID 项目PID配置列表
	CidSubsidyBillingOrderList = 125, // cid 补贴明细 - 订单列表
	CidManageSubsidyBillingOrderList = 126, // cid 补贴明细管理 - 订单列表
	CidManageSubsidyOrderList = 127, // cid 活动政策补贴对账 - 订单管理列表
  CidUdSmartTJOrder = 123, // CID udsmart天机订单
	CidUdSmartTJOrderCustom = 124, // CID udsmart天机订单列表
  CidLltProOrder = 128, // CID 流量通PRO订单总览
	CidLltProOrderCustom = 129, // CID 流量通PRO订单
  CidUdSmartOrder = 130, // CID udsmart订单
	CidUdSmartOrderCustom = 131, // CID udsmart订单列表
  CidJdCidOrder = 132, // CID 京东CID订单
  CidJdCidOrderCustom = 133, // CID 京东CID订单列表

  CidLLTCollect = 134, // CID 流量通收藏加购总览列表
  CidLLTCollectCustom = 135, // CID 流量通收藏加购列表
  CidUDSCollect = 136, // CID UDS收藏加购总览列表
  CidUDSCollectCustom = 137, // CID UDS收藏加购列表

  Order = 201, // 小店随心推订单
  StarVideoTask = 301, // 聚星星视频任务
	StarVideoOrder, // 聚星星视频订单
	SupplementOrder, // 聚星助推订单
	WxMicroApp = 402, // 微信小程序
	ByteMicroApp, // 字节小程序
  LoginAccount = 410, // 开户账号列表
  OpBoardBusinessList = 411, // 用户看板-企业用户看板
  
  ClueWeworkCustomer = 501, // 加粉通-企微客户列表
	ClueManageWeworkCustomer = 502, // 加粉通-总览-企微客户列表
  ClueFeiYuClueList = 503, // [Deprecated]加粉通-飞鱼线索列表
  ClueManageFeiYuClueList = 504, // [Deprecated]加粉通-总览-飞鱼线索列表
  ClueWeworkCorp = 506, // clue企业微信
  CluePromoteLink = 507, // clue推广链接
}


// 维度映射
export enum DIMENSIONS_MAP {
	// 标签id
	labelId = 'dim_0',
	// 标题包id
	titlePackageId = 'dim_1',
	// 标题id
	titleId = 'dim_2',
	// 抖音号id
	awemeId = 'dim_3',
	// 商品 id（千川）
	goodsId = 'dim_4',
	// 定向模板id
	audienceTemplateId = 'dim_5',
	// 创意分类包id
	creativeCategoryPackageId = 'dim_6',
	// 创意标签包id
	creativeLabelPackageId = 'dim_7',
	// 营销目标（推广目标）
	landingType = 'dim_8',
	// 开发者
	adxDeveloper = 'dim_9',
	// 管家
	houseKeeper = 'dim_10',

	// tt2.0
	adxSubId = 'dim_11',
	// 小店随心推
	orderId = 'dim_12',

	// 占坑，标记cid归因数据
	is_cid_order = 'dim_13',
	// 占坑, cid订单点击时间
	cid_order_click_time = 'dim_14',
	// 占坑，cid订单首次付款时间
	cid_order_first_pay_time = 'dim_15',
	
	// 千川转化周期订单
	transferOrderId = 'dim_16',

	// 加粉投放链接id
	clue_link_id = 'dim_17',
	// 加粉企微id
	clue_wework_corp_id = 'dim_18',
}

export const LANDING_TYPE = {
  // 头条
  1000601: "销售线索收集",
  1000602: "应用推广",
  1000603: "快应用推广",
  1000604: "商品目录推广",
  1000605: "商品推广（鲁班）",
  1000606: "门店推广",
  1000607: "抖音号推广",
  1000608: "电商店铺推广",
  1000609: "直播间推广",
  1000610: "头条文章推广",
  // 千川
  1100601: "短视频带货",
  1100602: "直播间带货",
  // 随心推
  1200601: "视频订单",
  1200602: "直播订单",
  // 快手
  1000901: "提升应用安装",
  1000902: "获取电商下单",
  1000903: "推广品牌活动",
  1000904: "收集销售线索",
  1000905: "提高应用活跃",
  1000906: "商品库推广",
  1000907: "粉丝/直播推广",
  // 金牛
  1100901: "短视频推广",
  1100902: "直播推广",
  // 广点通
  1000101: "应用推广-Android应用",
  1000102: "应用推广-IOS应用",
  1000103: "商品推广",
  1000104: "品牌活动推广",
  1000105: "应用宝推广",
  1000106: "Android 应用（广告包）",
  1000107: "本地广告（微信推广）",
  1000108: "QQ浏览器小程序",
  1000109: "网页推广目标",
  1000110: "QQ消息",
  1000111: "认证空间-视频说说",
  1000112: "本地广告",
  1000113: "好文广告",
  1000114: "销售线索收集",
  1000115: "腾讯课堂",
  1000116: "换量应用",
  1000117: "QQ空间日志页",
  1000118: "QQ空间嵌入页",
  1000119: "QQ空间首页",
  1000120: "PC应用",
  1000121: "微信小游戏",
  1000122: "QQ小游戏",
  1000123: "快应用",
  1000124: "微信公众号",
  // 汇川
  1002001: "推广网站",
  1002002: "推广iOS应用",
  1002003: "推广Android应用",
  1002004: "推广商品",
  1002005: "松塔小店",
  1002006: "淘宝天猫店铺",
  // 微博
  1000501: "推广品牌活动",
  1000502: "推广内容",
  1000503: "收集销售线索",
  1000504: "推广APP",
  // 爱奇艺
  1001001: "网站",
  1001002: "IOS APP",
  1001003: "Android APP",
  1001004: "唤醒Android APP",
  1001007: "唤醒IOS APP",
};

export enum MATERIAL_LABEL_TYPE {
  DESIGN = 1,
  CUT,
  Label,
  Brand = 7, // 品牌标签
  Product, // 产品标签
  Agent, // 代理商标签
  PHOTO, // 拍摄
}

export enum Label_Type {
  Design = 1,
  Cut,
  Label,
  strategy,
  material,
  Project,
}

// 新手引导状态
export enum FINISH_GUIDE_STATUS {
  NOT_NEED = 0, // 不需要
  FINISH_ZERO, // 未开始
  FINISH_PART, // 完成部分
  FINISH_ALL, // 完成全部
}

// 活动创建类型
export enum CREATE_TYPE {
  TD = 1, // TD新建下发
  TD_BATCH, // TD批量下发
  ADX, // 渠道平台同步
  ASYNC_COPY = 5,
  Copy,
  TD_UPLOAD = 7, // TD本地上传（不下发）
}

// 素材创建类型
export enum MATERIAL_CREATE_TYPE {
  TD = 1, // TD用户上传
  TD_BATCH, // TD批量下发
  ADX, // 渠道平台同步
  APP, // TD应用上传
  DERIVATION = 8, // 衍生素材
}

// 同步到渠道的状态类型
export enum SYNC_STATUS_TYPE {
  SUCCESS = 1, // 同步成功
  FAIL, // 同步失败
  WAIT, // 待同步
  NO_SYNC, //不进行同步
}

export enum MATERIAL_PLATFORM {
  TD_UPLOAD = 0,
  KS = 1,
  TT = 2,
  GDT = 3,
  QC = 4,
  JN = 5,
  WEIBO = 6,
  HC = 7,
  SXT = 8, //
  BILIBILI = 9
}

// 批量模板版本
export enum BATCH_AD_RULE_VERSION_TYPE {
  VERSION_1 = 1,
  VERSION_2 = 2,
}

// 批量创建广告接口返回错误类型
export enum BATCH_AD_ERROR_TYPE {
  MATERIAL_SOURCE_ERROR = 1,
  MATERIAL_DELETED,
}

//批量提交类型
export enum BATCH_SUBMIT_MODALITY_TYPE {
  IMMEDIATE_SUBMIT = 1, // 立即提交
  ONTIME_SUBMIT = 2, // 定时提交
  IN_BATCH_SUBMIT = 3, // 分批提交
}

// 分批提交状态
export enum IN_BATCH_SUBMIT_STATUS_TYPE {
  START = 1, // 开启
  STOP = 2, // 中止
}

export enum VERTIY_TYPE {
  EMPTY = 0,
  OAUTH2 = 1,
  PASSWORD = 2,
  USERNAME = 3,
  GDTWECHAT = 4,
  UCDSP = 5, // UC账号关联DSP产品账号
  TOUTIAOHOUSEKEEPER = 7,
  USERNAME_HOUSE_KEEPER = 8,
}

export enum CREATIVE_TYPE {
  AGENT = 1, // 监测
  PICTEXT, // 图文创意
}

// eslint-disable-next-line @typescript-eslint/no-namespace
export namespace PTC {
  export enum TYPE {
    ADX = 1,
    TEMPLATE,
    FIELD,
  }
  export enum FIELD_TYPE {
    TEXT = 1,
    IMAGE,
    HIDDEN, // 文字的变形，不给用户看见，但后端需要设定值。
    RADIO,
    VIDEO,
    SELECT,
  }
  export enum FILL_TYPE {
    // SELECT的填充类型
    DIRECT = 1, // 直接填充
    REMOTE, // 远程填充
  }
}

export enum WORD_TYPE {
  ALL = 1,
  CUSTOM = 2,
}

export enum BID_TIME_TYPE {
  SPECIFY = 1,
  ALL_DAY = -1,
}

export enum ADX_TYPE {
  RTB = 1,
  AGENT,
  IMPORT,
}

export enum SPOT_TYPE {
  NORMAL, // 普通
  SMART, // 优选
}

export enum BUDGET_TYPE {
  INFINITE, // 不限
  DAILY, // 日预算
  TOTAL, // 总预算
  SCHEDULE, // 分日预算
}

export enum SPEED_MODE {
  STANDARD, // 标准-广点通；不限-百度信息流
  FAST, // 加速
  UNIFORM, // 匀速-百度信息流
}

// 头条营销链路
export enum MARKETING_PURPOSE {
  ACKNOWLEDGE = "ACKNOWLEDGE", // 品牌认知
  INTENTION = "INTENTION", // 用户意向
  CONVERSION = "CONVERSION", // 行动转化
}

// 营销目标
export enum MARKETING_GOAL {
  // 千川
  VIDEO_PROM_GOODS = 1100601, // 短视频带货
  LIVE_PROM_GOODS, // 直播间带货
}

// 推广目的
export enum PROMOTION_PURPOSE {
  GDTLINK = "PROMOTED_OBJECT_TYPE_LINK", // 网页（10001）,
  GDTWECHAT = "PROMOTED_OBJECT_TYPE_LINK_WECHAT", // 网页 微信推广（10001）
  ECPROTO = "PROMOTED_OBJECT_TYPE_ECOMMERCE", // 电商推广 （10001）
  ANDROID = "PROMOTED_OBJECT_TYPE_APP_ANDROID", // 安卓应用（10001）
  IOS = "PROMOTED_OBJECT_TYPE_APP_IOS", // iOS应用（10001）
  PROMOTION = "PROMOTED_OBJECT_TYPE_APP_ANDROID_MYAPP", // 应用宝推广（10001）
  UNION = "PROMOTED_OBJECT_TYPE_APP_ANDROID_UNION", // 安卓联盟推广（10001）
  SALES_LEAD = "PROMOTED_OBJECT_TYPE_LEAD_AD", // 销售线索（10001）
  BDLINK = "1", // 网站链接（10002）
  BDIOS = "2", // IOS（10002）
  BDANDROID = "3", // ANDROID（10002）
  WECHAT = "PRODUCT_TYPE_LINK_WECHAT", // 品牌活动页，朋友圈和公众号均支持（10004）
  DEVICE = "0", // 计算机+移动设备（10003）
  TTLINK = "LINK", // 网页链接（10006）
  TTAPP = "APP", // App应用（10006）
  NEW_WECHAT_WEBPAGE = "PROMOTED_OBJECT_TYPE_LINK_WECHAT", // 网页（微信推广）（10007）
  DSP_LINK = "1", // 网页链接
  DSP_IOS = "2", // 下载IOS应用
  DSP_ANDROID = "3", // 下载android
  DSP_DEEPLINK = "4", // deeplink
}

// 应用类型
export enum PRODUCT_TYPE {
  ANDROID = "PROMOTED_OBJECT_TYPE_APP_ANDROID", // 安卓应用
  IOS = "PROMOTED_OBJECT_TYPE_APP_IOS", // IOS应用
  PROMOTION = "PROMOTED_OBJECT_TYPE_APP_ANDROID_MYAPP", // 应用宝应用
  UNION = "PROMOTED_OBJECT_TYPE_APP_ANDROID_UNION", // 联盟应用
}

// 淘宝数据上报类型
export enum TB_DATA_TYPE {
  MEDIA = 1,
  MATERIAL = 2,
}

// 素材文件类型
export enum MATERIAL_TYPE_MAPS {
  IMAGE = 2,
  VIDEO = 5,
  TEXT = 3,
}

// 操作符
export enum OPERATOR_TYPE {
  gt = '>',
  gte = '>=',
  eq = '=',
  lt = '<',
  lte = '<=',
}

// 搜索类型
export enum MATERIAL_SEARCH_TYPE {
  FOLDER = 1,
  GLOBAL,
  EXTID,
  ID,
  NAME,
}

export const folderSelectOption = [
  {value: MATERIAL_SEARCH_TYPE.FOLDER, label: "当前目录"},
  {value: MATERIAL_SEARCH_TYPE.GLOBAL, label: "全局"},
  {value: MATERIAL_SEARCH_TYPE.EXTID, label: "渠道素材ID"},
];

export const PLATFORM_LABEL = {
  [MATERIAL_PLATFORM.TD_UPLOAD]: {
    name: "本地上传",
    avatar: "local-avatar",
  },
  [MATERIAL_PLATFORM.KS]: {
    name: "磁力引擎",
    avatar: "kuaishou-avatar",
  },
  [MATERIAL_PLATFORM.TT]: {
    name: "巨量引擎",
    avatar: "toutiao-avatar",
  },
  [MATERIAL_PLATFORM.GDT]: {
    name: "腾讯广告",
    avatar: "gdt-avatar",
  },
  [MATERIAL_PLATFORM.QC]: {
    name: "巨量千川",
    avatar: "qianchuan-avatar",
  },
  [MATERIAL_PLATFORM.JN]: {
    name: "磁力金牛",
    avatar: "jinniu-avatar",
  },
};

export const SUB_PLATFORM = {
  1000101: "其他上传",
  1000102: "本地上传",
  1000103: "妙思创意实验室",
  1000104: "API",
  1000105: "快速制图",
  1000106: "视频截图",
  1000107: "TCC创意定制",
  1000108: "视频制作工具",

  1000601: "AD后台本地上传",
  1000602: "创意中心",
  1000603: "开放平台",
  1000604: "即合视频",
  1000605: "易拍视频",
  1000606: "推送视频",
  1000607: "星图视频",
  1000608: "达人视频",
  1000609: "其他来源",

  1000902: "自上传",
  1000904: "素造",
  1000903: "开眼",
  1000901: "素造（弃用）",
  1000905: "聚星视频",
  1000906: "MAPI",
  1000910: '个人主页',
  1000911: "供应商自制",

  1100601: "抖音视频",
  1100602: "巨量千川",
  1100603: "巨量纵横",

  1100901: "自上传",
  1100902: "素造",
  1100903: "开眼",
};

export enum HOUSEKEEPER_STATUS {
  NORMAL, // 正常
  UNBUTTED, // 未生效
  EXPIRED, // 异常
  IMPORT, // 外部导入的
  PENDING_AUTH, // 待授权
}

export const HOUSEKEEPER_STATUS_TEXT_MAP = {
  [HOUSEKEEPER_STATUS.NORMAL]: "正常", // 正常
  [HOUSEKEEPER_STATUS.UNBUTTED]: "未生效", // 未生效
  [HOUSEKEEPER_STATUS.EXPIRED]: "异常", // 异常
  [HOUSEKEEPER_STATUS.IMPORT]: "外部导入", // 外部导入的
  [HOUSEKEEPER_STATUS.PENDING_AUTH]: "待授权", // 待授权
};

export const ACCOUNT_STATUS_MAP = {
  "-2": { text: "未分配项目", className: "font-danger" },
  "-1": { text: "正常[低活跃]", className: "font-warning" },
  "0": { text: "正常", className: "", iconClassName: "font-success" },
  "1": { text: "绑定异常", className: "font-danger" },
  "2": { text: "绑定异常", className: "font-danger" },
  "3": { text: "外部", className: "", iconClassName: "font-warning" },
};

export enum TASK_PARAM_TYPE_TRANSFORM {
  ACCOUNT_REPORT = "ACCOUNT_REPORT", // 推广账号维度报表
  CAMPAIGN_REPORT = "CAMPAIGN_REPORT", // 广告报表
  PLAN_REPORT = "PLAN_REPORT", // 广告组报表
  CREATIVE_REPORT = "CREATIVE_REPORT", // 创意报表
  PRODUCT_REPORT = "PRODUCT_REPORT", // 商品报表
  AWEME_ACCOUNT_REPORT = "AWEME_ACCOUNT_REPORT", // 抖音号报表
  MATERIAL_REPORT = "MATERIAL_REPORT", // 素材报表
  LOGIN_ACCOUNT_LIST = "LOGIN_ACCOUNT_LIST", // 开户管理-开户账号列表
  OPBOARD_BUSINESS_LIST = "OPBOARD_BUSINESS_LIST", // 开户管理-企业账号列表
  CID_ORDER_REPORT = "CID_ORDER_REPORT", // CID订单总览报表
  CID_GOOD_MANAGE_LIST = "CID_GOOD_MANAGE_LIST", // CID商品总览列表
  CID_GOOD_LIST = "CID_GOOD_LIST", // CID 商品列表
  CID_COMMISSION_CHECK_LIST = "CID_COMMISSION_CHECK_LIST", // CID佣金对账列表
  CID_TA_ORDER_REPORT = "CID_TA_ORDER_REPORT", // CID TA订单总览报表
  CID_ACCOUNT_REPORT = "CID_ACCOUNT_REPORT", // CID 投放账号列表
  CID_ACCOUNT_MANAGE_REPORT = "CID_ACCOUNT_MANAGE_REPORT", // CID 投放账号总览
  CID_PROJECT_PID_MANAGE_REPORT = "CID_PROJECT_PID_MANAGE_REPORT", // CID 项目PID配置列表
  CID_MT_ORDER_REPORT = "CID_MT_ORDER_REPORT", // CID 美团订单
  CID_UDSMART_KLL_ORDER_REPORT = "CID_UDSMART_KLL_ORDER_REPORT", // CID udsmart订单
  CID_UDSMART_TJ_ORDER_REPORT = "CID_UDSMART_TJ_ORDER_REPORT", // CID udsmart订单
  CID_LLTPRO_ORDER_REPORT = "CID_LLTPRO_ORDER_REPORT", // CID 流量通PRO订单
  CID_UDSMART_ORDER_REPORT = "CID_UDSMART_ORDER_REPORT", // CID udsmart订单
  CID_JDCID_ORDER_REPORT = "CID_JDCID_ORDER_REPORT", // CID 京东PRO订单
  
  CID_LLTPRO_COLLECT_REPORT = "CID_LLTPRO_COLLECT_REPORT", // CID 流量通收藏加购列表
  CID_UDS_COLLECT_REPORT = "CID_UDS_COLLECT_REPORT", // CID UDS收藏加购列表

  AD_REPORT = "AD_REPORT",
  CID_MANAGE_COMMISSION_CHECK_LIST = "CID_MANAGE_COMMISSION_CHECK_LIST", // CID佣金对账管理列表
  CID_COMPANY_SETTLE_ORDER_LIST = "CID_COMPANY_SETTLE_ORDER_LIST", // CID出账管理订单明细
  CID_FB_SUBSIDY_ORDER_LIST = "CID_FB_SUBSIDY_ORDER_LIST", // CID 补贴订单明细 - 订单列表
	CID_MANAGE_FB_SUBSIDY_ORDER_LIST = "CID_MANAGE_FB_SUBSIDY_ORDER_LIST", // CID 政策补贴对账管理 - 订单列表
  AUDIT_MATERIAL = "AUDIT_MATERIAL",

	CLUE_WEWORK_CUSTOMER = "CLUE_WEWORK_CUSTOMER", // 加粉通-企微客户列表
}

export enum TASK_STATUS {
  PENDING,
  RUNNING,
  GETTING,
  SUCCESS,
  ERROR,
  PARTSUCCESS,
  SUBMIT_SUCCESS,
  SUBMIT_ERROR,
  SYNC_STATUS_SUCCESS,
  SYNC_STATUS_TIMEOUT,
  SUBMIT_ASSETS_ERROR,
  TERMINATED,
  QUERY_END = 12, // 查询结束
  CONFIRM_DEL = 13, // 确认删除
  DELETING = 14, // 删除中
}

export enum TASK_NS {
  TD = 0,
  CID = 1,
  CLUE = 2,
}

export const TASK_STATUS_TEXT_MAP:Record<TASK_STATUS, string> = {
  [TASK_STATUS.PENDING]: "创建中",
  [TASK_STATUS.RUNNING]: "进行中",
  [TASK_STATUS.GETTING]: "进行中",
  [TASK_STATUS.SUCCESS]: "成功",
  [TASK_STATUS.ERROR]: "失败",
  [TASK_STATUS.PARTSUCCESS]: "部分成功",
  [TASK_STATUS.SUBMIT_SUCCESS]: "创建成功",
  [TASK_STATUS.SUBMIT_ERROR]: "创建失败",
  [TASK_STATUS.SYNC_STATUS_SUCCESS]: "审核成功",
  [TASK_STATUS.SYNC_STATUS_TIMEOUT]: "创建成功，获取状态超时",
  [TASK_STATUS.SUBMIT_ASSETS_ERROR]: "创建资源失败",
  [TASK_STATUS.TERMINATED]: "已终止",
};

export enum TASK_MANAGE_TYPE {
  MANUAL_SYNC_MATERIAL = 1,
  SYNC_DOWNLOAD_PROJECT_REPORT,
  SYNC_DOWNLOAD_MATERIAL_REPORT,
  SYNC_DOWNLOAD_TOTAL_PROJECT_REPORT,
  MANUAL_SYNC_UNACTIVE_MATERIAL,
  MANUAL_SYNC_NAME_MATERIAL,
  MANUAL_SYNC_MATERIAL_UPLOAD,
  MANUAL_SYNC_AUDIT = 8,
  MANUAL_DERIVATE_MATERIAL = 9,
  MANUAL_CHANGE_MATERIAL = 10,
  MAUNAL_SYNC_QUALITY_MATERIAL = 11,
  DELETED_MATERIAL = 12,
  SYNC_DOWNLOAD_AUDIENCE_TEMPLATE_REPORT = 13,
  SYNC_DOWNLOAD_TITLEPACKAGE_REPORT = 14,
  SYNC_DOWNLOAD_CREATIVECATEGORY_REPORT = 15,
  SYNC_DOWNLOAD_CREATIVELABEL_REPORT = 16,
  BATCH_UPDATE_TRACK_LINK,
  BATCH_PLAN_START,
  BATCH_TERMINATE_ORDER,
  BATCH_UPDATE_RAISE = 20,
  BATCH_CAMPAIGN_START = 21,
  BATCH_CAMPAIGN_PAUSE,
  BATCH_PLAN_PAUSE,
  BATCH_CAMPAIGN_BUDGET,
  BATCH_CAMPAIGN_BID,
  BATCH_CAMPAIGN_DEEP_BID = 28,
  BATCH_CAMPAIGN_TIME_SET = 26,
  BATCH_CAMPAIGN_TARGET = 27,
  // BATCH_CAMPAIGN_STORE_PRODUCT_ID = 29,
  // BATCH_CAMPAIGN_JN_PRODUCT_ID = 30,
  BATCH_CAMPAIGN_PUT_LINK = 31,
  BATCH_PUSH_MATERIAL,
  BATCH_UPDATE_ACCOUNT_NAME,
  SYNC_MATERIAL_LABEL = 34,
  SET_MATERIAL_USED,
  SYNC_MATERIAL_REPORT = 36,
  BATCH_MATERIAL_DOWNLOAD = 37,
  BATCH_EDIT_ACCOUNT_NAME = 39,
  BATCH_EDIT_ACCOUNT_AVATER = 42,
  BATCH_CAMPAIGN_LANDING_PAGE = 38,
  BATCH_CREATE_BYTE_MICRO_APP = 40,
  BATCH_CREATE_WECHAT_MICRO_APP = 41,
  SYNC_BYTE_MICRO_APP = 50,
  SYNC_WECHAT_MICRO_APP = 51,
  SYNC_REPORT = 52, // 同步广告报表
  BATCH_CAMPAIGN_SOURCE = 55, // 批量修改广告来源
  BATCH_AWEME_AUTH = 53,
  BATCH_MATERIAL_ADVANCE_AUDIT = 54, // 头条/千川素材预审
  SYNC_AD_REPORT = 56,
  BATCH_MODIFY_MINI_PROGRAM_PATH = 57, // 广点通3.0修改创意小程序路径
	BATCH_CREATIVE_START = 60, // 批量开启创意状态
  BATCH_PLAN_TIME_SET = 59, // 广告组-修改投放时段
  LOGIN_ACCOUNT_LIST = 61, // 开户管理-开户账号列表
  OPBOARD_BUSINESS_LISTs = 62, // 开户管理-开户账号列表
  BATCH_CAMPAIGN_DATE_SET = 63, // 广告计划-修改投放日期
  BATCH_PLAN_BID = 64, // 广告组-修改出价
  BATCH_PLAN_DEEP_BID = 65, // 广告组-修改深度出价
  INVALID_MATERIAL = 66, // 查询无效素材
  BATCH_CAMPAIGN_DELETE = 68, // 广告计划-删除
  EXPORT_AUDIT_MATERIAL = 69, // 导出拒审信息
  BATCH_PLAN_ROI = 112, /// 批量修改roi
	// 这里还可以加其他类型

  // CID异步任务
	CID_DOWNLOAD_ORDER_REPORT = 100, // CID订单总览
	CID_DOWNLOAD_ORDER_REPORT_CUSTOM = 101, // CID订单列表
	CID_DOWNLOAD_GOOD_MANAGE_LIST = 102, // CID商品总览
  CID_DOWNLOAD_COMMISSION_CHECK_LIST = 105, // CID佣金对账列表
  CID_DOWNLOAD_TA_ORDER_REPORT = 103, // CID TA订单总览
  CID_DOWNLOAD_TA_ORDER_REPORT_CUSTOM = 104, // CID TA订单列表
  CID_DOWNLOAD_MANAGE_COMMISSION_CHECK_LIST = 106, // CID佣金对账管理列表
  CID_DOWNLOAD_COMPANY_SETTLE_ORDER_LIST = 107, // CID出账管理订单明细
  CID_DOWNLOAD_MT_ORDER_REPORT = 113, // CID 美团订单总览
  CID_DOWNLOAD_MT_ORDER_REPORT_CUSTOM = 114, // CID 美团订单列表
  CID_DOWNLOAD_UDSMART_KLL_ORDER_REPORT = 115, // CID udsmart订单总览
  CID_DOWNLOAD_UDSMART_KLL_ORDER_REPORT_CUSTOM = 116, // CID udsmart订单列表
  CID_DOWNLOAD_UDSMART_TJ_ORDER_REPORT = 117, // CID udsmart订单总览
  CID_DOWNLOAD_UDSMART_TJ_ORDER_REPORT_CUSTOM = 118, // CID udsmart订单列表
  CID_DOWNLOAD_LLTPRO_ORDER_REPORT = 119, // CID 流量通PRO订单总览
  CID_DOWNLOAD_LLTPRO_ORDER_REPORT_CUSTOM = 120, // CID 流量通PRO订单列表
  CID_DOWNLOAD_ACCOUNT_REPORT = 108, // CID 投放账号列表
  CID_DOWNLOAD_ACCOUNT_MANAGE_REPORT = 121, // CID 投放账号总览
  CID_DOWNLOAD_PROJECT_PID_MANAGE_REPORT = 122, // CID 项目PID配置列表
  CID_DOWNLOAD_GOOD_LIST = 123, // CID 商品列表
	CID_DOWNLOAD_SUBSIDY_BILLING_ORDER_LIST = 125, // CID 补贴明细订单列表
	CID_DOWNLOAD_MANAGE_SUBSIDY_BILLING_ORDER_LIST = 126, // CID 补贴明细订单列表 订单管理列表
	CID_DOWNLOAD_MANAGE_SUBSIDY_ORDER_LIST = 127, // CID 活动补贴对账 订单管理列表

  CID_DOWNLOAD_UDSMART_ORDER_REPORT = 130, // CID udsmart订单总览
  CID_DOWNLOAD_UDSMART_ORDER_REPORT_CUSTOM = 131, // CID udsmart订单列表
  CID_DOWNLOAD_JDCID_ORDER_REPORT = 132, // CID 京东PRO订单总览
  CID_DOWNLOAD_JDCID_ORDER_REPORT_CUSTOM = 133, // CID 京东PRO订单列表

  CID_DOWNLOAD_LLTPRO_COLLECT_REPORT = 134, // CID 流量通收藏加购总览列表
  CID_DOWNLOAD_LLTPRO_COLLECT_REPORT_CUSTOM = 135, // CID 流量通收藏加购列表
  CID_DOWNLOAD_UDS_COLLECT_REPORT = 136, // CID UDS收藏加购总览列表
  CID_DOWNLOAD_UDS_COLLECT_REPORT_CUSTOM = 137, // CID UDS收藏加购列表

  // 加粉通异步任务
	CLUE_DOWNLOAD_WEWORK_CUSTOMER = 200, // 加粉通-企微客户列表
	CLUE_DOWNLOAD_MANAGE_WEWORK_CUSTOMER = 201, // 加粉通-企微客户总览
	// 前面还有位置，不要总往后加
}

// 允许中断的任务类型(AsyncReport执行的异步报表任务允许删除后中断)
export const ALLOW_TERMINATE_TASK_TYPE = [
  TASK_MANAGE_TYPE.SYNC_DOWNLOAD_PROJECT_REPORT,
  TASK_MANAGE_TYPE.SYNC_DOWNLOAD_MATERIAL_REPORT,
  TASK_MANAGE_TYPE.SYNC_DOWNLOAD_AUDIENCE_TEMPLATE_REPORT,
  TASK_MANAGE_TYPE.SYNC_DOWNLOAD_TITLEPACKAGE_REPORT,
  TASK_MANAGE_TYPE.SYNC_DOWNLOAD_CREATIVECATEGORY_REPORT,
  TASK_MANAGE_TYPE.SYNC_DOWNLOAD_CREATIVELABEL_REPORT,
  TASK_MANAGE_TYPE.SYNC_AD_REPORT,
  TASK_MANAGE_TYPE.CID_DOWNLOAD_ORDER_REPORT,
	TASK_MANAGE_TYPE.CID_DOWNLOAD_ORDER_REPORT_CUSTOM,
	TASK_MANAGE_TYPE.CID_DOWNLOAD_GOOD_MANAGE_LIST,
  TASK_MANAGE_TYPE.CID_DOWNLOAD_COMMISSION_CHECK_LIST,
  TASK_MANAGE_TYPE.CID_DOWNLOAD_TA_ORDER_REPORT,
  TASK_MANAGE_TYPE.CID_DOWNLOAD_TA_ORDER_REPORT_CUSTOM,
  TASK_MANAGE_TYPE.CID_DOWNLOAD_MANAGE_COMMISSION_CHECK_LIST,
  TASK_MANAGE_TYPE.CID_DOWNLOAD_COMPANY_SETTLE_ORDER_LIST,
  TASK_MANAGE_TYPE.CID_DOWNLOAD_MT_ORDER_REPORT,
  TASK_MANAGE_TYPE.CID_DOWNLOAD_MT_ORDER_REPORT_CUSTOM,
  TASK_MANAGE_TYPE.CID_DOWNLOAD_UDSMART_KLL_ORDER_REPORT,
  TASK_MANAGE_TYPE.CID_DOWNLOAD_UDSMART_KLL_ORDER_REPORT_CUSTOM,
  TASK_MANAGE_TYPE.CID_DOWNLOAD_UDSMART_TJ_ORDER_REPORT,
  TASK_MANAGE_TYPE.CID_DOWNLOAD_UDSMART_TJ_ORDER_REPORT_CUSTOM,
  TASK_MANAGE_TYPE.CID_DOWNLOAD_LLTPRO_ORDER_REPORT,
  TASK_MANAGE_TYPE.CID_DOWNLOAD_LLTPRO_ORDER_REPORT_CUSTOM,
  TASK_MANAGE_TYPE.CID_DOWNLOAD_ACCOUNT_REPORT,
  TASK_MANAGE_TYPE.CID_DOWNLOAD_ACCOUNT_MANAGE_REPORT,
  TASK_MANAGE_TYPE.CID_DOWNLOAD_PROJECT_PID_MANAGE_REPORT,
  TASK_MANAGE_TYPE.CID_DOWNLOAD_GOOD_LIST,
];

export const BATCH_TASK_MANAGE = [
  TASK_MANAGE_TYPE.BATCH_PLAN_PAUSE,
  TASK_MANAGE_TYPE.BATCH_PLAN_START,
  TASK_MANAGE_TYPE.BATCH_CAMPAIGN_PAUSE,
  TASK_MANAGE_TYPE.BATCH_CAMPAIGN_START,
  // TASK_MANAGE_TYPE.BATCH_TERMINATE_ORDER,
  TASK_MANAGE_TYPE.BATCH_UPDATE_TRACK_LINK,
  TASK_MANAGE_TYPE.BATCH_CAMPAIGN_BUDGET,
  TASK_MANAGE_TYPE.BATCH_CAMPAIGN_BID,
  TASK_MANAGE_TYPE.BATCH_CAMPAIGN_DEEP_BID,
  TASK_MANAGE_TYPE.BATCH_CAMPAIGN_TARGET,
  TASK_MANAGE_TYPE.BATCH_CAMPAIGN_TIME_SET,
  TASK_MANAGE_TYPE.BATCH_CAMPAIGN_DATE_SET,
  // TASK_MANAGE_TYPE.BATCH_CAMPAIGN_STORE_PRODUCT_ID,
  // TASK_MANAGE_TYPE.BATCH_CAMPAIGN_JN_PRODUCT_ID,
  TASK_MANAGE_TYPE.BATCH_CAMPAIGN_PUT_LINK,
  TASK_MANAGE_TYPE.BATCH_PUSH_MATERIAL,
  TASK_MANAGE_TYPE.BATCH_UPDATE_RAISE,
  TASK_MANAGE_TYPE.BATCH_CAMPAIGN_LANDING_PAGE,
  TASK_MANAGE_TYPE.BATCH_CAMPAIGN_SOURCE,
  TASK_MANAGE_TYPE.BATCH_PLAN_ROI,
  TASK_MANAGE_TYPE.BATCH_PLAN_BID,
  TASK_MANAGE_TYPE.BATCH_PLAN_DEEP_BID,
  TASK_MANAGE_TYPE.BATCH_MODIFY_MINI_PROGRAM_PATH,
  TASK_MANAGE_TYPE.BATCH_CREATIVE_START,
  TASK_MANAGE_TYPE.BATCH_PLAN_TIME_SET,
  TASK_MANAGE_TYPE.INVALID_MATERIAL,
  TASK_MANAGE_TYPE.BATCH_CAMPAIGN_DELETE,
]

// 任务结果映射
export const RESULT_TEXT_PLAN_TASK = [
  TASK_MANAGE_TYPE.BATCH_PLAN_PAUSE,
  TASK_MANAGE_TYPE.BATCH_PLAN_START,
  TASK_MANAGE_TYPE.BATCH_PLAN_ROI,
  TASK_MANAGE_TYPE.BATCH_PLAN_BID,
  TASK_MANAGE_TYPE.BATCH_PLAN_DEEP_BID,
]

export const RESULT_TEXT_CAMPAIGN_TYPE = [
  TASK_MANAGE_TYPE.BATCH_CAMPAIGN_PAUSE,
  TASK_MANAGE_TYPE.BATCH_CAMPAIGN_START,
  TASK_MANAGE_TYPE.BATCH_CAMPAIGN_BUDGET,
  TASK_MANAGE_TYPE.BATCH_CAMPAIGN_BID,
  TASK_MANAGE_TYPE.BATCH_CAMPAIGN_TARGET,
  TASK_MANAGE_TYPE.BATCH_CAMPAIGN_TIME_SET,
  TASK_MANAGE_TYPE.BATCH_CAMPAIGN_DATE_SET,
  TASK_MANAGE_TYPE.BATCH_CAMPAIGN_PUT_LINK,
  TASK_MANAGE_TYPE.BATCH_UPDATE_TRACK_LINK,
  TASK_MANAGE_TYPE.BATCH_CAMPAIGN_DEEP_BID,
  TASK_MANAGE_TYPE.BATCH_CAMPAIGN_SOURCE,
  TASK_MANAGE_TYPE.BATCH_PLAN_TIME_SET,
  TASK_MANAGE_TYPE.BATCH_CAMPAIGN_DELETE,
];

export const RESULT_TEXT_MATERIAL_TYPE = [
  TASK_MANAGE_TYPE.BATCH_PUSH_MATERIAL
]

export const TASK_TYPE_TEXT_MAP: {[k in TASK_MANAGE_TYPE]: string} = {
  [TASK_MANAGE_TYPE.MANUAL_SYNC_MATERIAL]: "素材拉取",
  [TASK_MANAGE_TYPE.MANUAL_SYNC_UNACTIVE_MATERIAL]: "低效素材拉取",
  [TASK_MANAGE_TYPE.SYNC_DOWNLOAD_PROJECT_REPORT]: "项目报表导出",
  [TASK_MANAGE_TYPE.SYNC_DOWNLOAD_MATERIAL_REPORT]: "素材报表导出",
  [TASK_MANAGE_TYPE.SYNC_DOWNLOAD_TOTAL_PROJECT_REPORT]: "整体数据报表导出",
  [TASK_MANAGE_TYPE.MANUAL_SYNC_NAME_MATERIAL]: "同步素材名称",
  [TASK_MANAGE_TYPE.MANUAL_SYNC_MATERIAL_UPLOAD]: "上传素材到后台",
  [TASK_MANAGE_TYPE.MANUAL_SYNC_AUDIT]: "同步拒审信息",
  [TASK_MANAGE_TYPE.MANUAL_DERIVATE_MATERIAL]: "衍生素材",
  [TASK_MANAGE_TYPE.MAUNAL_SYNC_QUALITY_MATERIAL]: "获取素材评价",
  // [TASK_MANAGE_TYPE.MANUAL_CHANGE_MATERIAL]: "AI素材换脸",
  [TASK_MANAGE_TYPE.DELETED_MATERIAL]: "快捷清理素材",
  [TASK_MANAGE_TYPE.SYNC_DOWNLOAD_AUDIENCE_TEMPLATE_REPORT]: "定向包报表导出",
  [TASK_MANAGE_TYPE.SYNC_DOWNLOAD_TITLEPACKAGE_REPORT]: "标题包报表导出",
  [TASK_MANAGE_TYPE.SYNC_DOWNLOAD_CREATIVECATEGORY_REPORT]: "创意分类报表导出",
  [TASK_MANAGE_TYPE.SYNC_DOWNLOAD_CREATIVELABEL_REPORT]: "创意标签报表导出",
  [TASK_MANAGE_TYPE.BATCH_UPDATE_TRACK_LINK]: "修改监测链接",
  [TASK_MANAGE_TYPE.BATCH_TERMINATE_ORDER]: "批量终止订单",
  [TASK_MANAGE_TYPE.BATCH_PLAN_START]: "广告组-开启",
  [TASK_MANAGE_TYPE.BATCH_PLAN_PAUSE]: "广告组-暂停",
  [TASK_MANAGE_TYPE.BATCH_CAMPAIGN_PAUSE]: "广告计划-暂停",
  [TASK_MANAGE_TYPE.BATCH_CAMPAIGN_START]: "广告计划-开启",
  [TASK_MANAGE_TYPE.BATCH_CAMPAIGN_BUDGET]: "广告计划-修改预算",
  [TASK_MANAGE_TYPE.BATCH_CAMPAIGN_BID]: "广告计划-修改出价",
  [TASK_MANAGE_TYPE.BATCH_CAMPAIGN_DEEP_BID]: "广告计划-修改深度出价",
  [TASK_MANAGE_TYPE.BATCH_CAMPAIGN_TARGET]: "广告计划-修改定向包",
  [TASK_MANAGE_TYPE.BATCH_CAMPAIGN_TIME_SET]: "广告计划-修改投放时段",
  [TASK_MANAGE_TYPE.BATCH_CAMPAIGN_DATE_SET]: "广告计划-修改投放日期",
  [TASK_MANAGE_TYPE.BATCH_CAMPAIGN_SOURCE]: "广告计划-修改广告来源",
  [TASK_MANAGE_TYPE.BATCH_MODIFY_MINI_PROGRAM_PATH]: "广告创意-修改小程序链接",
  [TASK_MANAGE_TYPE.BATCH_CREATIVE_START]: "广告创意-开启",
  [TASK_MANAGE_TYPE.INVALID_MATERIAL]: "查看无效素材",
  [TASK_MANAGE_TYPE.BATCH_CAMPAIGN_DELETE]: "广告计划-删除",
  [TASK_MANAGE_TYPE.EXPORT_AUDIT_MATERIAL]: "导出拒审信息",

  // [TASK_MANAGE_TYPE.BATCH_CAMPAIGN_STORE_PRODUCT_ID]: "广告计划-修改小店商品id",
  // [TASK_MANAGE_TYPE.BATCH_CAMPAIGN_JN_PRODUCT_ID]: "广告计划-修改金牛商品id",
  [TASK_MANAGE_TYPE.BATCH_CAMPAIGN_PUT_LINK]: "广告计划-修改直达链接",
  [TASK_MANAGE_TYPE.BATCH_PUSH_MATERIAL]: "跨项目推送素材",
  [TASK_MANAGE_TYPE.BATCH_UPDATE_RAISE]: "批量预约一键起量",
  [TASK_MANAGE_TYPE.SYNC_MATERIAL_LABEL]: "同步素材标签",
  [TASK_MANAGE_TYPE.BATCH_UPDATE_ACCOUNT_NAME]: "批量更新账户名称",
  [TASK_MANAGE_TYPE.BATCH_MATERIAL_DOWNLOAD]: "素材下载",
  [TASK_MANAGE_TYPE.BATCH_CREATE_BYTE_MICRO_APP]: "头条创建字节小程序",
  [TASK_MANAGE_TYPE.BATCH_CREATE_WECHAT_MICRO_APP]: "头条创建微信小程序",
  [TASK_MANAGE_TYPE.SYNC_BYTE_MICRO_APP]: "同步头条字节小程序",
  [TASK_MANAGE_TYPE.SYNC_WECHAT_MICRO_APP]: "同步头条微信小程序",
  [TASK_MANAGE_TYPE.SET_MATERIAL_USED]: "同步未使用素材",
  [TASK_MANAGE_TYPE.SYNC_MATERIAL_REPORT]: "获取素材报表数据",
  [TASK_MANAGE_TYPE.BATCH_CAMPAIGN_LANDING_PAGE]: "广告计划-修改落地页",
  [TASK_MANAGE_TYPE.CID_DOWNLOAD_ORDER_REPORT]: "CID订单总览报表",
  [TASK_MANAGE_TYPE.BATCH_EDIT_ACCOUNT_NAME]: "批量修改账户名称",
  [TASK_MANAGE_TYPE.BATCH_EDIT_ACCOUNT_AVATER]: "头条-批量上传/更新头",
  [TASK_MANAGE_TYPE.BATCH_AWEME_AUTH]: "巨量引擎-批量授权抖音号",
  [TASK_MANAGE_TYPE.BATCH_MATERIAL_ADVANCE_AUDIT]: "素材预审",
  [TASK_MANAGE_TYPE.SYNC_REPORT]: "获取广告报表数据",
  [TASK_MANAGE_TYPE.SYNC_AD_REPORT]: "广告报表",
  [TASK_MANAGE_TYPE.BATCH_PLAN_ROI]: "批量修改roi系数",
  [TASK_MANAGE_TYPE.BATCH_PLAN_BID]: "广告组-批量修改出价",
  [TASK_MANAGE_TYPE.BATCH_PLAN_DEEP_BID]: "广告组-批量修改深度出价",
  [TASK_MANAGE_TYPE.BATCH_PLAN_TIME_SET]: "广告组-修改投放时段",
  [TASK_MANAGE_TYPE.LOGIN_ACCOUNT_LIST]: "开户管理-开户账号列表",
  [TASK_MANAGE_TYPE.OPBOARD_BUSINESS_LISTs]: "用户看板-企业用户看板",
  [TASK_MANAGE_TYPE.CID_DOWNLOAD_ORDER_REPORT_CUSTOM]: "CID订单列表报表",
  [TASK_MANAGE_TYPE.CID_DOWNLOAD_GOOD_MANAGE_LIST]: "CID商品总览列表",
  [TASK_MANAGE_TYPE.CID_DOWNLOAD_GOOD_LIST]: "CID 商品列表",
  [TASK_MANAGE_TYPE.CID_DOWNLOAD_COMMISSION_CHECK_LIST]: "CID佣金对账列表",
  [TASK_MANAGE_TYPE.CID_DOWNLOAD_MANAGE_COMMISSION_CHECK_LIST]: "CID佣金对账管理列表",
  [TASK_MANAGE_TYPE.CID_DOWNLOAD_COMPANY_SETTLE_ORDER_LIST]: "CID出账管理订单明细",
  [TASK_MANAGE_TYPE.CID_DOWNLOAD_TA_ORDER_REPORT]: "CID TA订单总览报表",
  [TASK_MANAGE_TYPE.CID_DOWNLOAD_TA_ORDER_REPORT_CUSTOM]: "CID TA订单列表报表",
  [TASK_MANAGE_TYPE.CID_DOWNLOAD_ACCOUNT_REPORT]: "CID 投放账号列表",
  [TASK_MANAGE_TYPE.CID_DOWNLOAD_ACCOUNT_MANAGE_REPORT]: "CID 投放账号总览报表",
  [TASK_MANAGE_TYPE.CID_DOWNLOAD_PROJECT_PID_MANAGE_REPORT]: "CID 项目PID配置列表",
  [TASK_MANAGE_TYPE.CID_DOWNLOAD_MT_ORDER_REPORT]: "CID美团订单总览",
  [TASK_MANAGE_TYPE.CID_DOWNLOAD_MT_ORDER_REPORT_CUSTOM]: "CID美团订单列表",
  [TASK_MANAGE_TYPE.CID_DOWNLOAD_SUBSIDY_BILLING_ORDER_LIST]: "CID补贴明细订单列表",
  [TASK_MANAGE_TYPE.CID_DOWNLOAD_MANAGE_SUBSIDY_BILLING_ORDER_LIST]: "CID补贴明细订单管理列表",
  [TASK_MANAGE_TYPE.CID_DOWNLOAD_MANAGE_SUBSIDY_ORDER_LIST]: "CID活动政策补贴对账订单管理列表",
  [TASK_MANAGE_TYPE.CID_DOWNLOAD_UDSMART_KLL_ORDER_REPORT]: "CID UDSmart订单总览",
  [TASK_MANAGE_TYPE.CID_DOWNLOAD_UDSMART_KLL_ORDER_REPORT_CUSTOM]: "CID UDSmart订单列表",
  [TASK_MANAGE_TYPE.CID_DOWNLOAD_UDSMART_TJ_ORDER_REPORT]: "CID UDSmart-2订单总览",
  [TASK_MANAGE_TYPE.CID_DOWNLOAD_UDSMART_TJ_ORDER_REPORT_CUSTOM]: "CID UDSmart-2订单列表",
  [TASK_MANAGE_TYPE.CID_DOWNLOAD_LLTPRO_ORDER_REPORT]: "CID 流量通PRO订单总览",
  [TASK_MANAGE_TYPE.CID_DOWNLOAD_LLTPRO_ORDER_REPORT_CUSTOM]: "CID 流量通PRO订单列表",
  [TASK_MANAGE_TYPE.CID_DOWNLOAD_UDSMART_ORDER_REPORT]: "CID UDSmart订单总览",
  [TASK_MANAGE_TYPE.CID_DOWNLOAD_UDSMART_ORDER_REPORT_CUSTOM]: "CID UDSmart订单列表",
  [TASK_MANAGE_TYPE.CID_DOWNLOAD_JDCID_ORDER_REPORT]: "CID 京东PRO订单总览",
  [TASK_MANAGE_TYPE.CID_DOWNLOAD_JDCID_ORDER_REPORT_CUSTOM]: "CID 京东PRO订单列表",
  [TASK_MANAGE_TYPE.CID_DOWNLOAD_LLTPRO_COLLECT_REPORT]: "CID 流量通收藏加购总览列表",
  [TASK_MANAGE_TYPE.CID_DOWNLOAD_LLTPRO_COLLECT_REPORT_CUSTOM]: "CID 流量通收藏加购列表",
  [TASK_MANAGE_TYPE.CID_DOWNLOAD_UDS_COLLECT_REPORT]: "CID UDS收藏加购总览列表",
  [TASK_MANAGE_TYPE.CID_DOWNLOAD_UDS_COLLECT_REPORT_CUSTOM]: "CID UDS收藏加购列表",
  [TASK_MANAGE_TYPE.CLUE_DOWNLOAD_WEWORK_CUSTOMER]: "企微客户列表",
  [TASK_MANAGE_TYPE.CLUE_DOWNLOAD_MANAGE_WEWORK_CUSTOMER]: "企微客户总览",
};
export const word = {
  plan: "广告组",
  campaign: "广告",
  creative: "创意",
  aweme: "抖音",
  product: "商品",
};

export enum EFFECT_STATUS {
  UNACTIVE = 1,
  ACTIVE,
}

export enum TK_TASK_ACTION {
  PREVIEW = 1, // 预览
  MAKE = 2, // 制作
}

export const STORAGE_KEY = {
  size: "Grid_PageSize_Cache",
};

export enum COOPERATION_TYPE {
  TRIAL = 1, // 试用
  PAY, // 付费
  LOST, // 流失
}

export enum GDT_REPORT_TIME_LINE {
  REQUEST_TIME = 0, // 按广告播放时间
  REPORTING_TIME, // 按行为上报时间
  ACTIVE_TIME, // 按行为上报时间-部分指标特殊归因
}

export const COOPERATION_TEXT = [
  {label: "试用", value: COOPERATION_TYPE.TRIAL},
  {label: "付费", value: COOPERATION_TYPE.PAY},
  {label: "流失", value: COOPERATION_TYPE.LOST},
];

export enum LOGIN_ACCOUNT_PRODUCT {
  TD = 1, // TD
  CID = 2, // CID
  SXT = 3, // 小店随心推
  INNER = 4, // 内部产品
  CLUE = 5, // 加粉通
}

export const QUALIT_TEXT = {
  "1": "普通",
  "2": "优质",
  "3": "低效",
};

export enum TT_QUALITY {
  PRETTY = 1, // 优质素材
  FIRST_PUBLISH, // 首发素材
  SIMILAR, // 同质化挤压素材
  SIMILAR_QUEUE, // 同质化排队素材
  LOW, // 低效素材
  LOW_QUALITY, // 低质素材
  CARRY, // 搬运素材
  SIMILAR_EXPECTED_QUEUE, // 同质化预计排队素材
  UNKNOWN, // 其他
}

export const TT_QUALITY_TEXT = {
  [TT_QUALITY.PRETTY]: "优质",
  [TT_QUALITY.FIRST_PUBLISH]: "首发",
  [TT_QUALITY.SIMILAR]: "同质化严重",
  [TT_QUALITY.SIMILAR_QUEUE]: "同质化风险",
  [TT_QUALITY.LOW]: "低效",
  [TT_QUALITY.LOW_QUALITY]: "低质",
  [TT_QUALITY.CARRY]: "搬运",
  [TT_QUALITY.SIMILAR_EXPECTED_QUEUE]: "同质化预计排队",
  [TT_QUALITY.UNKNOWN]: "其他",
}

export enum ADVANCE_AUDIT {
  NONE = 0,
	FIRST, // 首发素材
	SIMILAR_QUEUE, // 同质化素材风险-排队
	SIMILAR_EXPECTED_QUEUE, // 同质化-未投放预计排队
	REJECT, // 拒绝
}

export enum MATERIAL_QUALITY {
  UNKNOWN,
  COMMON,
  PRETTY,
  LOW,
}

export enum NOTICE_MODE {
  "MSG_CENTER" = 1,
  "DIOLOG",
  "ALL",
}

// 埋点指标
export enum TRACK_METRICS {
  project_report_ot = "project_report_ot", // 项目报表打开次数
  period_days_ot = "period_days_ot", // 每日时段分析打开次数
  optimizer_report_ot = "optimizer_report_ot", // 优化是报表打开次数 ot => open_times
  advert_report_ot = "advert_report_ot", // 广告报表打开次数
  project_report_dt = "project_report_dt", //  项目报表下载次数 dt => download_times
  material_report_dt = "material_report_dt", // 素材报表下载次数
  optimizer_report_dt = "optimizer_report_dt", // 优化是报表下载次数
  advert_report_dt = "advert_report_dt", // 广告报表下载次数
  local_video_ut = "local_video_ut", // 本地上传视频次数 ut => upload_times
  adx_video_st = "adx_video_st", // 渠道同步视频次数 st => sync_times
  file_upload_size = "file_upload_size", // 文件上传大小
  rule_template_it = "rule_template_it", // 新增规则模板数 it => increment_times
  title_it = "title_it", // 新增标题数
  adx_batch_copy_c = "adx_batch_copy_c", // 渠道页面批量复制点击次数
  mini_program_ot = "mini_program_ot", // 小程序打开次数
  // 以下指标是直接统计数据库的
  monitor_processing = "monitor_processing", // 智能监控当前在跑规则数
}

// Ana表的汇总指标
export enum ANA_AMOUNT_METRICS {
  monitor_total = "monitor_total", // 智能监控规则总数
  title_total = "title_total", // 标题总数
  rule_template_total = "rule_template_total", // 总规则模板数
  local_video_total = "local_video_total", // 本地上传视频总数
  adx_video_total = "adx_video_total", // 渠道同步视频总数
}

export enum OP {
  PAUSE = "pause",
  START = "start",
  REMOVE = "remove",
  RECOVER = "recover",
  BID = "bid",
  PRODUCT = "product",
  BUDGET = "budget",
  TARGET = "target",
  TIMESET = "timeSet",
  DESTROY = "destroy",
  UPDATE = "update",
  PUT_LINK = "putLink",
}

// 评论管理-屏蔽生效类型
export enum AdxBannedKind {
  Adv = 1, // 广告账户屏蔽词
  Aweme = 2, // 抖音号屏蔽词
}

// 评论内容-查询的平台版本
export enum AdxPlatformVersion {
  V1 = "V1", // 1.0平台（默认值）
  V2 = "V2", // 2.0平台
}

// 评论内容-查询的评论等级
export enum AdxLevelType {
  ALL = "LEVEL_ALL", // 所有评论（默认值）
  ONE = "LEVEL_ONE", // 一级评论
  TWO = "LEVEL_TWO", // 二级评论
}

// 评论内容-隐藏状态
export enum AdxHideStatus {
  ALL = "ALL", // 全部
  HIDE = "HIDE", // 已隐藏
  NOT_HIDE = "NOT_HIDE", // 未隐藏(默认值）
}

// 评论内容-评论情感
export enum AdxEmotionType {
  NEGATIVE = "NEGATIVE", // 负向评论
  NEUTRAL = "NEUTRAL", // 中性评论
  POSITIVE = "POSITIVE", // 正向评论
}

// 评论内容-抖音号分类
export enum AdxBindRelation {
  ALL = "ALL", // 全部抖音号
  BIND_AWEME = "BIND_AWEME", // 绑定的抖音号
  VIRTUAL_AWEME = "VIRTUAL_AWEME", // 虚拟抖音号
}

// 评论内容-处理状态
export enum AdxIsReplied {
  YES = 1,
  No = 0,
}

// 评论内容-置顶状态
export enum AdxIsStick {
  YES = 1,
  No = 0,
}

// 评论内容-置顶操作状态
export enum AdxStickType {
  CANCEL_STICK = 'CANCEL_STICK', // 取消置顶
  STICK_ON_TOP = 'STICK_ON_TOP', // 置顶
}

// 评论内容-评论状态
export enum AdxReplyStatus {
  NO_REPLY = "NO_REPLY",
  REPLY_AUDIT_FAIL = "REPLY_AUDIT_FAIL",
  REPLY_AUDIT_SUCCESS = "REPLY_AUDIT_SUCCESS",
  REPLY_TO_AUDIT = "REPLY_TO_AUDIT",
}

// 评论内容-评论回复状态
export const CommentReplyStatusText = {
  [AdxReplyStatus.NO_REPLY]: "未回复",
  [AdxReplyStatus.REPLY_AUDIT_FAIL]: "回复审核拒绝",
  [AdxReplyStatus.REPLY_AUDIT_SUCCESS]: "回复审核通过",
  [AdxReplyStatus.REPLY_TO_AUDIT]: "回复待审核",
};

// 评论内容-评论层级
export const CommentLevelTypeText = {
  [AdxLevelType.ALL]: "全部",
  [AdxLevelType.ONE]: "一级评论",
  [AdxLevelType.TWO]: "二级评论",
};

// 评论内容-评论情感\评论类型
export const CommentEmotionTypeText = {
  [AdxEmotionType.NEGATIVE]: "负向评论",
  [AdxEmotionType.NEUTRAL]: "中性评论",
  [AdxEmotionType.POSITIVE]: "正向评论",
};

// 评论内容-平台
export const CommentPlatformVersionText = {
  [AdxPlatformVersion.V1]: "1.0平台",
  [AdxPlatformVersion.V2]: "2.0平台",
};

// 评论内容- 处理状态
export const CommentIsRepliedText = {
  [AdxIsReplied.YES]: "是",
  [AdxIsReplied.No]: "否",
};

// 评论内容- 隐藏状态
export const CommentHideStatusText = {
  [AdxHideStatus.ALL]: "全部",
  [AdxHideStatus.NOT_HIDE]: "未隐藏",
  [AdxHideStatus.HIDE]: "已隐藏",
};

// 评论内容- 置顶
export const CommentIsStickText = {
  [AdxIsStick.YES]: "置顶",
  [AdxIsStick.No]: "不置顶",
};

// 评论内容-搜索过滤
export enum CommentSearchOption {
  AD = "AdId", // v1
  CREATIVE = "CreativeId", // v1
  ITEM = "ItemId", // v2
}

export const CommentSearchOptionText = {
  [CommentSearchOption.AD]: "计划ID", // v1
  [CommentSearchOption.CREATIVE]: "创意ID", // v1
  [CommentSearchOption.ITEM]: "视频ID", // v2
};

// 评论内容-搜索过滤
export enum CommentSearchOptionType {
  AdId = "AdId", // v1
  CreativeId = "CreativeId", // v1
  ItemId = "ItemId", // v2
}

export enum AutoReplySwitch {
  Stop = 0,
  Start = 1,
}

export enum MatchKeysMode {
  FULL = 0, // 全匹配所有关键词
  SEMI = 1, // 匹配任意一个关键词
}

export enum IsStickStatus {
  NO = 0,
  YES = 1,
}

export enum ConditionKey {
  EmotionType = "EmotionType",
  IsStick = "IsStick",
  LevelType = "LevelType",
}

export const ConditionDesc = {
  [ConditionKey.EmotionType]: "评论情感",
  [ConditionKey.IsStick]: "评论置顶",
  [ConditionKey.LevelType]: "评论等级",
};

export const ConditionText = {
  [ConditionKey.EmotionType]: CommentEmotionTypeText,
  [ConditionKey.IsStick]: CommentIsStickText,
  [ConditionKey.LevelType]: CommentLevelTypeText,
};

// 自动回复记录-搜索过滤
export enum RecordSearchOptionType {
  RuleId = "RuleId", // 规则ID
  RuleName = "RuleName", // 规则名称
  Text = "Text", // 评论内容
  AccountExtId = "AccountExtId", // 广告账号ID
  CampaignId = "CampaignId", // 计划ID
}

// 快手评论内容-搜索过滤
export enum KsCommentSearchOptionType {
	Content = "Content", // 评论内容｜支持模糊匹配
	Photo = "Photo", // 视频搜索参数｜支持视频ID或名称
	PhotoTags = "PhotoTags", // 视频标签
}

// 快手评论内容-搜索条件文本
export const KsCommentSearchOptionText = {
  [KsCommentSearchOptionType.Content]: "评论内容",
  [KsCommentSearchOptionType.Photo]: "视频ID",
  [KsCommentSearchOptionType.PhotoTags]: "视频标签",
};

// 快手的屏蔽类型
export enum AdxKsShieldType {
	Keyword = 1, // 评论内容关键词
	Maunal = 3, // 手动屏蔽
	Auto = 4, // 社区自动屏蔽
	UserName = 5, // 用户昵称关键词
	UserId = 6, // 快手 ID
}

// 快手的屏蔽类型文本
export const AdxKsShieldTypeText = {
	[AdxKsShieldType.Keyword]: "评论内容关键词",
	[AdxKsShieldType.Maunal]: "手动屏蔽",
	[AdxKsShieldType.Auto]: "社区自动屏蔽",
	[AdxKsShieldType.UserName]: "用户昵称关键词",
	[AdxKsShieldType.UserId]: "快手ID",
}

// 用户查询层级
export enum USER_QUERY_LEVEL {
	NONE,
	COSTOMER, // 客户（顶级项目）
	USER, // 顶级项目下的项目
}


// 小程序审核状态
export enum MICRO_APP_TYPE {
	BYTE_DANCE = 1, // 字节小程序
	WECHAT, // 微信小程序
}

// 小程序审核状态
export enum MicroAppLinkType {
	AUTO_FILL = 1, // 直接填入链接
	AUTO_GENERATE, // 直接参数自动生成
}

//  渠道版本
export enum  ADX_VERSION {
  ALL = 0, // 全部
  ORG, // 原版
  NEW, // 新版
}

// 落地页使用状态
export enum CID_LANDPAGE_STATUS {
	HADUSER, // 默认状态 使用中
	NOUSER, // 未使用
}

export enum ENTITY_STATUS {
	NORMAL,
	STOP,
	DRAFT,
	DELETE,
}

export const NO_LABEL = -2;
